#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import ssouser_blueprint
from api.ssoUserResource.ssoUserResource import SsoUserResource
from api.ssoUserResource.ssoUserOtherResource import SsoUserOtherResource

api = Api(ssouser_blueprint)

api.add_resource(SsoUserResource, 
    '/ssoUser/<user_id>', 
    '/ssoUser', 
    '/ssoUser/register', 
    '/ssoUser/login',
    endpoint='SsoUser'
)


@ssouser_blueprint.route('/ssouser/update/<user_id>', methods=['PUT'], endpoint='SsoUserUpdate')
def update(user_id):
    return SsoUserOtherResource.sensitive_update(user_id)
